package com.sjd.mapper;

import com.sjd.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

//注解表示这是mybatis的mapper类  Dao层 @Repository
@Mapper
@Repository
public interface UserMapper {

    public List<User> getUserList();

    public User getUserByid(@Param("id") int id);

    public int addUser(User user);

    public int modifyUser(User user);

    public int deleteUserById(@Param("id") int id);

}
